package routers

import (
	"2302a_wz/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	//文章添加
	beego.Router("/create", &controllers.WzController{}, "POST:Create")
	//文章展示
	beego.Router("/list", &controllers.WzController{}, "POST:List")
	//文章修改
	beego.Router("/update", &controllers.WzController{}, "POST:Update")
	//文章删除
	beego.Router("/del", &controllers.WzController{}, "POST:Del")

}
